/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package azhar.engine;

import javax.swing.JTextArea;

/**
 *
 * @author Al-Insan
 */
public class CountCharacter {

    private int ch;
    private String text;

    public CountCharacter(){
        
    }

    public int count(JTextArea txt){
        text = txt.getText();
        return text.length();
    }

    public String getText(){
        String t = "";
        for (int i = 0; i < 1920; i++) {
            t+=text.charAt(i);
        }
        return t;
    }

}
